import { wrapApi } from './utils';
import Mock from 'mockjs';
// import { ElMessage } from 'element-plus/lib/index';
// location.pathname.startsWith('/ibs') &&
//   ElMessage.warning('请注意你正在使用mock模式!');
Mock.mock(
  /\/api\/sso\/ssoFacade\/verifyToken/,
  'get',
  wrapApi({
    success: true,
    code: '00000',
    desc: null,
    data: {
      userName: '超级管理员',
      userAccount: '超级管理员'
    }
  })
);

Mock.mock(
  /\/api\/ums\/user\/listPlatformResByUser/,
  'post',
  wrapApi({
    success: true,
    code: '00000',
    desc: null,
    data: [
      {
        tenantId: 10000,
        systemCode: 'ucenter',
        systemName: '用户中心',
        path: 'http://ums.digitforce.com'
      },
      {
        tenantId: 10000,
        systemCode: 'assortment',
        systemName: '智能选品平台',
        path: 'http://supplyforce.digitforce.com/assortment-admin'
      },
      {
        tenantId: 10000,
        systemCode: 'cj',
        systemName: '用户智能决策',
        path: 'http://prod.digitforce.com/cgf-cj/'
      },
      {
        tenantId: 10000,
        systemCode: 'studiox',
        systemName: '数据开发平台',
        path: 'http://batchx.digitforce.com/studiox/'
      },
      {
        tenantId: 10000,
        systemCode: 'operatex',
        systemName: '任务管理',
        path: 'http://batchx.digitforce.com/operatex/'
      },
      {
        tenantId: 10000,
        systemCode: 'dio',
        systemName: '数据集成',
        path: 'http://batchx.digitforce.com/dio/'
      },
      {
        tenantId: 10000,
        systemCode: 'metadatax',
        systemName: '元数据平台',
        path: 'http://prod.digitforce.com/metadatax/'
      },
      {
        tenantId: 10000,
        systemCode: 'replenish',
        systemName: '智能预测平台',
        path: 'http://prod.digitforce.com/sof-io'
      },
      {
        tenantId: 10000,
        systemCode: 'scm',
        systemName: '智慧供应链平台',
        path: 'http://supplyforce.digitforce.com'
      },
      {
        tenantId: 10000,
        systemCode: 'scm_manage',
        systemName: '供应链管理平台',
        path: 'http://supplyforce.digitforce.com/base-admin'
      },
      {
        tenantId: 10000,
        systemCode: 'sales_forcasting',
        systemName: '销量预测',
        path: 'http://supplyforce.digitforce.com/salesforcasting-admin'
      },
      {
        tenantId: 10000,
        systemCode: 'batchx',
        systemName: '大数据批量处理平台',
        path: 'http://batchx.digitforce.com/batchx/'
      },
      {
        tenantId: 10000,
        systemCode: 'csaas',
        systemName: '云计算SAAS平台',
        path: 'http://customer.digitforce.com'
      },
      {
        tenantId: 10000,
        systemCode: 'metricx',
        systemName: '指标平台',
        path: 'http://prod.digitforce.com/dap-hm/'
      },
      {
        tenantId: 10000,
        systemCode: 'cdp',
        systemName: 'CDP',
        path: 'http://prod.digitforce.com/cgf-cd/'
      },
      {
        tenantId: 10000,
        systemCode: 'ci',
        systemName: '用户洞察',
        path: 'http://prod.digitforce.com/cgf-ci/'
      }
    ]
  })
);

Mock.mock(
  /\/api\/ums\/dictEntry\/listByEntryKeys/,
  'post',
  wrapApi({
    code: '00000',
    success: true,
    data: [
      {
        id: '53',
        createTime: '2021-12-09 11:17:41',
        createUser: '创建人',
        deleted: false,
        entryKey: 'ucenter',
        entryName: '用户中心',
        extCode: null,
        level: 2,
        parentKey: '0',
        parentName: null,
        path: 'http://ums.digitforce.com/',
        remark: 'ums',
        seq: 1,
        tenantId: 10000,
        typeKey: 'system',
        typeName: '系统平台',
        updateTime: '2022-05-27 15:15:26',
        updateUser: '超级管理员',
        desc: null
      }
    ]
  })
);

Mock.mock(
  /\/api\/ums\/user\/listResourceByUserAndSystemCode/,
  'get',
  wrapApi({
    success: true,
    code: '00000',
    desc: null,
    data: {
      menuList: [
        {
          resourceCode: 'metricsx',
          resourceName: '指标平台',
          resourcePath: '',
          resourceIcon: 'icon-metricsx-zhibiaoku',
          resourceLink: '/market',
          childrens: [
            {
              resourceCode: 'menu_market',
              resourceName: '指标市场',
              resourcePath: '',
              resourceIcon: '',
              resourceLink: '/market',
              childrens: [
                {
                  resourceCode: 'menu_market_base',
                  resourceName: '指标市场',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-zhibiaoshichang',
                  resourceLink: '/market/base',
                  childrens: []
                }
              ]
            },
            {
              resourceCode: 'menu_manage',
              resourceName: '指标管理',
              resourcePath: '',
              resourceIcon: '',
              resourceLink: '/manage',
              childrens: [
                {
                  resourceCode: 'menu_manage_indexlib',
                  resourceName: '指标库',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-zhibiaoku',
                  resourceLink: '/manage/indexlib',
                  childrens: [
                    {
                      resourceCode: 'menu_manage_indexlib_create',
                      resourceName: '指标定义',
                      resourcePath: '',
                      resourceIcon: '',
                      resourceLink: '/manage/indexlib/create'
                    },
                    {
                      resourceCode: 'menu_manage_indexlib_base',
                      resourceName: '指标元信息管理',
                      resourcePath: '',
                      resourceIcon: '',
                      resourceLink: '/manage/indexlib/base'
                    }
                  ]
                },
                {
                  resourceCode: 'menu_manage_modifier',
                  resourceName: '修饰词管理',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-xiushiciguanli1',
                  resourceLink: '/manage/modifier',
                  childrens: []
                },
                {
                  resourceCode: 'menu_manage_dimension',
                  resourceName: '维度管理',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-weidu',
                  resourceLink: '/manage/dimension',
                  childrens: []
                },
                {
                  resourceCode: 'menu_manage_statistics',
                  resourceName: '统计粒度管理',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-shijianzhouqi',
                  resourceLink: '/manage/statistics',
                  childrens: []
                },
                {
                  resourceCode: 'menu_manage_foreground_settings',
                  resourceName: '前台管理',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-qiantaiguanli',
                  resourceLink: '/manage/foreground/settings',
                  childrens: []
                },
                {
                  resourceCode: 'menu_manage_background_settings',
                  resourceName: '后台管理',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-houtaiguanli',
                  resourceLink: '/manage/background/settings',
                  childrens: []
                }
              ]
            },
            {
              resourceCode: 'menu_indicator',
              resourceName: '指标开发',
              resourcePath: '',
              resourceIcon: '',
              resourceLink: '/indicator',
              childrens: [
                {
                  resourceCode: 'menu_indicator_develop',
                  resourceName: '指标开发',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-develop',
                  resourceLink: '/indicator/develop',
                  childrens: []
                },
                {
                  resourceCode: 'menu_indicator_scenes',
                  resourceName: '场景管理',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-changjingguanli',
                  resourceLink: '/indicator/scenes',
                  childrens: []
                },
                {
                  resourceCode: 'menu_indicator_model',
                  resourceName: '模型管理',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-model',
                  resourceLink: '/indicator/model',
                  childrens: []
                },
                {
                  resourceCode: 'menu_indicator_data',
                  resourceName: '数据管理',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-shujuguanli',
                  resourceLink: '/indicator/data',
                  childrens: []
                }
              ]
            },
            {
              resourceCode: 'menu_application',
              resourceName: '指标应用',
              resourcePath: '',
              resourceIcon: '',
              resourceLink: '/application',
              childrens: [
                {
                  resourceCode: 'menu_application_fetch',
                  resourceName: '指标取数',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-zizhuqushu',
                  resourceLink: '/application/fetch',
                  childrens: []
                },
                {
                  resourceCode: 'menu_application_task',
                  resourceName: '任务管理',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-shujuguanli',
                  resourceLink: '/application/task',
                  childrens: []
                },
                {
                  resourceCode: 'menu_public_dashboard',
                  resourceName: '公共看板',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-publicboard',
                  resourceLink: '/application/public-dashboard',
                  childrens: []
                },
                {
                  resourceCode: 'menu_my_dashboard',
                  resourceName: '指标看板',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-metricsboard',
                  resourceLink: '/application/my-dashboard',
                  childrens: []
                },
                {
                  resourceCode: 'menu_application_tree',
                  resourceName: '指标树',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-metricstree',
                  resourceLink: '/application/index-tree',
                  childrens: []
                }
              ]
            },
            {
              resourceCode: 'menu_system_manage',
              resourceName: '系统管理',
              resourcePath: '',
              resourceIcon: '',
              resourceLink: '/system-manage',
              childrens: [
                {
                  resourceCode: 'menu_system_manage_settings',
                  resourceName: '审批流设置',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-a-approvalprocess',
                  resourceLink: '/system-manage/settings',
                  childrens: []
                }
              ]
            },
            {
              resourceCode: 'menu_work_center',
              resourceName: '工作台',
              resourcePath: '',
              resourceIcon: '',
              resourceLink: '/approval',
              childrens: [
                {
                  resourceCode: 'menu_approval_dispose',
                  resourceName: '审批处理',
                  resourcePath: '',
                  resourceIcon: 'icon-metricsx-a-shenpiapproval',
                  resourceLink: '/approval/dealwith',
                  childrens: [
                    {
                      resourceCode: 'menu_approval_my_created',
                      resourceName: '我创建的',
                      resourcePath: '',
                      resourceIcon: '',
                      resourceLink: '/approval/dealwith/my-created',
                      childrens: []
                    },
                    {
                      resourceCode: 'menu_approval_myApproval',
                      resourceName: '我审批的',
                      resourcePath: '',
                      resourceIcon: '',
                      resourceLink: '/approval/dealwith/my-approval',
                      childrens: []
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      buttonList: [
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_subject',
          resourceCode: 'btn_above_subject_create',
          resourceName: '主题管理-上方添加主题',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 1,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_basic',
          resourceCode: 'btn_basic_create',
          resourceName: '原子指标-新建',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 0,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_basic',
          resourceCode: 'btn_basic_delete',
          resourceName: '原子指标-删除',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 3,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_basic',
          resourceCode: 'btn_basic_modify',
          resourceName: '原子指标-编辑',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 2,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_subject',
          resourceCode: 'btn_below_subject_create',
          resourceName: '主题管理-下方添加主题',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 2,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_derivative',
          resourceCode: 'btn_derivative_create',
          resourceName: '派生指标-创建派生指标',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 0,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_derivative',
          resourceCode: 'btn_derivative_delete',
          resourceName: '派生指标-删除',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 3,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_derivative',
          resourceCode: 'btn_derivative_modify',
          resourceName: '派生指标-编辑',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 1,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_derivative',
          resourceCode: 'btn_derivative_publish',
          resourceName: '派生指标-发布',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 2,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_dimension',
          resourceCode: 'btn_dimension_create',
          resourceName: '维度管理-新建',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 0,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_dimension',
          resourceCode: 'btn_dimension_delete',
          resourceName: '维度管理-删除',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 2,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_dimension',
          resourceCode: 'btn_dimension_modify',
          resourceName: '维度管理-编辑',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 1,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_basic',
          resourceCode: 'btn_hyperlink_basic_name',
          resourceName: '原子指标-指标名称超链接',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 1,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_model',
          resourceCode: 'btn_model_create',
          resourceName: '模型管理-创建模型',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 0,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_model',
          resourceCode: 'btn_model_delete',
          resourceName: '模型管理-删除',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 3,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_model',
          resourceCode: 'btn_model_disable',
          resourceName: '模型管理-禁用',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 2,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_model',
          resourceCode: 'btn_model_modify',
          resourceName: '模型管理-编辑',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 1,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_period',
          resourceCode: 'btn_period_create',
          resourceName: '统计周期-新建',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 0,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_period',
          resourceCode: 'btn_period_delete',
          resourceName: '统计周期-删除',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 2,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_period',
          resourceCode: 'btn_period_modify',
          resourceName: '统计周期-编辑',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 1,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_subject',
          resourceCode: 'btn_subject_delete',
          resourceName: '主题管理-删除',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 3,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_subject',
          resourceCode: 'btn_subject_rename',
          resourceName: '主题管理-重命名',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 0,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        },
        {
          id: null,
          createTime: null,
          updateTime: null,
          tenantId: null,
          deleted: null,
          createUser: null,
          updateUser: null,
          systemCode: 'metricsx',
          systemName: '指标平台',
          moduleCode: 'metricsx',
          moduleName: '指标平台',
          parentCode: 'menu_subject',
          resourceCode: 'btn_sub_subject_create',
          resourceName: '主题管理-添加子主题',
          resourcePath: '',
          resourceTypeCode: 'func_type',
          resourceTypeName: '功能类型',
          resourceSubtypeCode: 'button',
          resourceSubtypeName: '功能按钮',
          remark: null,
          seq: 4,
          resourceIcon: '',
          resourceLink: '',
          childrens: null,
          userAccount: 'superadmin'
        }
      ]
    }
  })
);
